package com.example.my_flea_street.service.impl;

import com.example.my_flea_street.Mapper.SquareMapper;
import com.example.my_flea_street.bean.Info;
import com.example.my_flea_street.service.SquareService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "squareService")
public class SquareServiceImpl implements SquareService {

    @Resource
    SquareMapper squareMapper;

    @Override
    public Page<Info> getInfo() {
        return squareMapper.getInfo();
    }

    public void report(int info_id, String release_time) {
        squareMapper.report(info_id,release_time);
    }
}
